<?php
/**
 * Created by PhpStorm.
 * User: alice
 * Date: 2015/12/26
 * Time: 14:14
 */

/**
 * Class Involved_UserModel
 */

class Involved_LookWithdrawModel extends BaseModel{

    protected $table = 'lock_withdraw';

    /**
     * 锁定表
     */
    public function lockwithdraw($user_id)
    {
        return DB::table($this->table)
            ->where(['user_id'=>$user_id,'number'=>5])
            ->count();
    }

     /**
     * 锁定表
     */
    public function lockwithdrawone($user_id)
    {
        return DB::table($this->table)
            ->where(['user_id'=>$user_id])
            ->first();
    }
 


}
